package com.t11;

/**
 * Created by xuyiwei on 2018/7/22.
 */
public class Gerbil {
    private final int gerbilNumber;
    Gerbil(int gerbilNumber) {
        this.gerbilNumber = gerbilNumber;
    }
    public String toString() {
        return "gerbil " + gerbilNumber;
    }
    public void hop() {
        System.out.println(this + " is hopping");
    }
}
